package com.ruoyi.approval.mapper;

import java.util.List;
import com.ruoyi.approval.domain.ASchedulingApplicationVehicle;
import org.apache.ibatis.annotations.Param;

/**
 * 申请与车辆关联Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-02
 */
public interface ASchedulingApplicationVehicleMapper
{
    /**
     * 查询申请与车辆关联
     *
     * @param id 申请与车辆关联主键
     * @return 申请与车辆关联
     */
    public ASchedulingApplicationVehicle selectASchedulingApplicationVehicleById(Long id);

    /**
     * 查询申请与车辆关联列表
     *
     * @param aSchedulingApplicationVehicle 申请与车辆关联
     * @return 申请与车辆关联集合
     */
    public List<ASchedulingApplicationVehicle> selectASchedulingApplicationVehicleList(ASchedulingApplicationVehicle aSchedulingApplicationVehicle);

    /**
     * 新增申请与车辆关联
     *
     * @param aSchedulingApplicationVehicle 申请与车辆关联
     * @return 结果
     */
    public int insertASchedulingApplicationVehicle(ASchedulingApplicationVehicle aSchedulingApplicationVehicle);

    /**
     * 修改申请与车辆关联
     *
     * @param aSchedulingApplicationVehicle 申请与车辆关联
     * @return 结果
     */
    public int updateASchedulingApplicationVehicle(ASchedulingApplicationVehicle aSchedulingApplicationVehicle);

    /**
     * 删除申请与车辆关联
     *
     * @param id 申请与车辆关联主键
     * @return 结果
     */
    public int deleteASchedulingApplicationVehicleById(Long id);

    /**
     * 批量删除申请与车辆关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteASchedulingApplicationVehicleByIds(Long[] ids);

    /**
     * 根据申请id查询车辆数组
     * @param approvalRequestsId 申请id
     * @return 结果
     */
    List<ASchedulingApplicationVehicle> selectASchedulingApplicationVehicleBySchedulingApplicationId(@Param("schedulingApplicationId") String approvalRequestsId, @Param("type") Long type);

    /**
     * 批量新增申请与车辆关联
     * @param aSchedulingApplicationVehicles 申请集合
     * @return 结果
     */
    int insertASchedulingApplicationVehicleId(List<ASchedulingApplicationVehicle> aSchedulingApplicationVehicles);


}
